package com.study.thirdlib

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.study.thirdlib.litepal.NewsActivity
import kotlinx.android.synthetic.main.activity_third_lib.*
import org.jetbrains.anko.sdk27.coroutines.onClick
import org.jetbrains.anko.startActivity

class ThirdLibActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_third_lib)

        toLitepalBtn.onClick {
            startActivity<NewsActivity>()
        }
    }
}
